package com.hmall.common.client;

import com.hmall.common.dto.PageDTO;
import com.hmall.common.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("itemservice")
public interface ItemClient {
    @GetMapping("/item/list")
    PageDTO <Item>pageClient(@RequestParam Long page,@RequestParam Long size);

    @GetMapping("/item/{id}")
     Item selectById(@PathVariable Long id);

    @PutMapping("/item")
     void updateall(@RequestBody Item item);
}



